const INITIAL_STATE = {
  isLoading: true,
  isLoadMore: true,
  data: {},
  profile: {},
  users: {},
  integralIns: {}
}

export default function lists(state = INITIAL_STATE, action) {
  switch (action.type) {
    case 'lists/list':
      return {
        ...state,
        ...action.payload,
      }
    case 'lists/profile':
      return {
        ...state,
        ...action.payload,
      }
    case 'lists/users':
      return {
        ...state,
        ...action.payload,
      }
    case 'lists/integralIns':
      return {
        ...state,
        ...action.payload,
      }
    default:
      return state
  }
}